import request from '@/utils/request'

export default {

  listProvinces: (data) => {
    return request({
      url: '/prov/list',
      method: 'post',
      data
    })
  },

  /**
   * 省份添加
   * @param data
   */
  addProvince: (data) => {
    return request({
      url: '/prov/new',
      method: 'post',
      data
    })
  },

  updateStatus: (data) => {
    return request({
      url: '/prov/update/status',
      method: 'post',
      data
    })
  },

  /**
   * 删除省份
   * @param data
   */
  deleteProvince: (data) => {
    return request({
      url: '/prov/delete',
      method: 'post',
      data
    })
  }
}
